Changing comments layout preparing for generated documentation with Phpdocumentor
[lhc/web/wiklou.git] / includes / SpecialVersion.php
1 <?php
2 /**
3 *
4 */
5
6 /**
7 * constructor
8 */
9 function wfSpecialVersion() {
10 global $wgUser, $wgOut, $wgVersion;
11 $fname = "wfSpecialVersion";
12
13 $prefix = wfMsg( 'special_version_prefix' );
14 $postfix = wfMsg( 'special_version_postfix' );
15 if( $prefix != '&nbsp;' ) {
16 $wgOut->addWikiText( $prefix );
17 }
18 $wgOut->addHTML( '
19 <p>This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>,
20 copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker,
21 Tim Starling, Erik M&ouml;ller, and others.</p>
22
23 <p>MediaWiki is free software; you can redistribute it and/or modify
24 it under the terms of the GNU General Public License as published by
25 the Free Software Foundation; either version 2 of the License, or
26 (at your option) any later version.</p>
27
28 <p>MediaWiki is distributed in the hope that it will be useful,
29 but WITHOUT ANY WARRANTY; without even the implied warranty of
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 GNU General Public License for more details.</p>
32
33 <p>You should have received <a href="../COPYING">a copy of the GNU General Public License</a>
34 along with this program; if not, write to the Free Software
35 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 or <a href="http://www.gnu.org/copyleft/gpl.html">read it online</a></p>
37 ');
38 if( $postfix != '&nbsp;' ) {
39 $wgOut->addWikiText( $postfix );
40 }
41 $versions = array(
42 "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion,
43 "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")",
44 "[http://www.mysql.com/ MySQL]" => mysql_get_server_info()
45 );
46
47 $out = '';
48 foreach( $versions as $module => $ver ) {
49 $out .= ":$module: $ver\n";
50 }
51 $wgOut->addWikiText( $out );
52 }
53 ?>